//
//  FFSJsonTool.m
//  FFSurveillance
//
//  Created by roro_latrobe on 16/11/8.
//  Copyright © 2016年 cn.wanda. All rights reserved.
//

#import "FFSJsonTool.h"

@implementation FFSJsonTool

+ (NSMutableDictionary *)dictionaryWithJsonString:(NSString *)jsonString {
    if (jsonString == nil) {
        return nil;
    }
    NSData              *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:NO];
    NSError             *err;
    NSMutableDictionary *dic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONWritingPrettyPrinted error:nil];
    
    
    if (err) {
        return nil;
    }
    return dic;
}

@end
